<div class="clientes view">
<h2><?php  echo __('Cliente'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Iniciocobertura'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['iniciocobertura']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Mesvencimento'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['mesvencimento']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nome'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Genero'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['genero']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Estadocivil'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Estadocivil']['nome'], array('controller' => 'estadocivils', 'action' => 'view', $cliente['Estadocivil']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Rg'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['rg']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Orgexp'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['orgexp']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cpf'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['cpf']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Datanasc'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['datanasc']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cep'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['cep']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Endereco'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['endereco']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Bairro'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['bairro']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cidade'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['cidade']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Uf'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Uf']['abreviacao'], array('controller' => 'ufs', 'action' => 'view', $cliente['Uf']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Foneresidencial'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['foneresidencial']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Fonecomercial'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['fonecomercial']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Ramal'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['ramal']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Celular'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['celular']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['email']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Email2'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['email2']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nomemae'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['nomemae']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Lotacao'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['lotacao']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Matricula'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['matricula']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Statusservidor'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Statusservidor']['nome'], array('controller' => 'statusservidors', 'action' => 'view', $cliente['Statusservidor']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Banco'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Banco']['nome'], array('controller' => 'bancos', 'action' => 'view', $cliente['Banco']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Agenciabancaria'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['agenciabancaria']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Contacorrente'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['contacorrente']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Corretor'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Corretor']['nome'], array('controller' => 'corretors', 'action' => 'view', $cliente['Corretor']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Entidade'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Entidade']['nome'], array('controller' => 'entidades', 'action' => 'view', $cliente['Entidade']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Planosaude'); ?></dt>
		<dd>
			<?php echo $this->Html->link($cliente['Planosaude']['titulo'], array('controller' => 'planosaudes', 'action' => 'view', $cliente['Planosaude']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($cliente['Cliente']['modified']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Cliente'), array('action' => 'edit', $cliente['Cliente']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Cliente'), array('action' => 'delete', $cliente['Cliente']['id']), null, __('Are you sure you want to delete # %s?', $cliente['Cliente']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Clientes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Cliente'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Estadocivils'), array('controller' => 'estadocivils', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Estadocivil'), array('controller' => 'estadocivils', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Ufs'), array('controller' => 'ufs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Uf'), array('controller' => 'ufs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Statusservidors'), array('controller' => 'statusservidors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Statusservidor'), array('controller' => 'statusservidors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Bancos'), array('controller' => 'bancos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Banco'), array('controller' => 'bancos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Corretors'), array('controller' => 'corretors', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Corretor'), array('controller' => 'corretors', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Entidades'), array('controller' => 'entidades', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Entidade'), array('controller' => 'entidades', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Planosaudes'), array('controller' => 'planosaudes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Planosaude'), array('controller' => 'planosaudes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Dependentes'), array('controller' => 'dependentes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Dependente'), array('controller' => 'dependentes', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Dependentes'); ?></h3>
	<?php if (!empty($cliente['Dependente'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Datanasc'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Genero'); ?></th>
		<th><?php echo __('Nomemae'); ?></th>
		<th><?php echo __('Parentesco Id'); ?></th>
		<th><?php echo __('Estadocivil Id'); ?></th>
		<th><?php echo __('Cliente Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cliente['Dependente'] as $dependente): ?>
		<tr>
			<td><?php echo $dependente['id']; ?></td>
			<td><?php echo $dependente['datanasc']; ?></td>
			<td><?php echo $dependente['nome']; ?></td>
			<td><?php echo $dependente['genero']; ?></td>
			<td><?php echo $dependente['nomemae']; ?></td>
			<td><?php echo $dependente['parentesco_id']; ?></td>
			<td><?php echo $dependente['estadocivil_id']; ?></td>
			<td><?php echo $dependente['cliente_id']; ?></td>
			<td><?php echo $dependente['created']; ?></td>
			<td><?php echo $dependente['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'dependentes', 'action' => 'view', $dependente['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'dependentes', 'action' => 'edit', $dependente['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'dependentes', 'action' => 'delete', $dependente['id']), null, __('Are you sure you want to delete # %s?', $dependente['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Dependente'), array('controller' => 'dependentes', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
